using System.Collections.ObjectModel;
using Bazookabird.Wpf.Model;
using Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace Bazookabird.Wpf.Queries.QueryHandlers.SimpleSprintViewer
{
    public class RevisionCollection : ObservableCollection<Revision>
    {
        public RevisionCollection() { }
        public RevisionCollection(WorkItemNode workItemNode) : this()
        {
            for (var cnt = 0; cnt < workItemNode.WorkItem.Revisions.Count; cnt++)
            {
                Add(workItemNode.WorkItem.Revisions[cnt]);
            }
        }
    }
}